package g.beny.framework.exception;

import java.util.Collection;

/**
 * 
 * @author gson
 *
 */
public class ArgsException extends BenyException {
	private static final long serialVersionUID = 1L;

	public ArgsException() {
		setCode(510);
	}
	
	public ArgsException(Collection<String> errorsList) {
		setCode(510);
		StringBuffer msg = new StringBuffer();
		for (String es : errorsList) {
			msg.append(es);
			msg.append(" ");
		}
		setMsg(msg.toString());
	}

	@Override
	public String getType() {
		return "参数异常";
	}
}
